package com.lhg.juc;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class test2 {
    public static void main(String[] args) {
        Runnable  r = new Runnable() {
            @Override
            public void run() {
                log.debug("running");
            }
        };

        //lambda 表达式简化
        Runnable  r2 = () -> log.debug("running");


        Thread t = new Thread(r,"t2");
        t.start();
    }
}
